﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace InnvoiceActual.Logica.GestorObject.Articulo
{
    public class UnicodigoArticulo: INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged; 

        private int _categoria;
        public int Categoria
        {
            get
            {
                return _categoria;
            }
            set
            {
                _categoria = value;
                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Categoria"));
            }
        }

        private int _articulo;
        public int Articulo
        {
            get
            {
                return _articulo;
            }
            set
            {
                _articulo = value;
                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Articulo"));
            }
        }


        private int _subArticulo;
        public int SubArticulo
        {
            get
            {
                return _subArticulo;
            }
            set
            {
                _subArticulo = value;
                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("SubArticulo"));
            }
        }

        private string _descripcion;
        public string Descripcion
        {
            get
            {
                return this._descripcion;
            }
            set
            {
                if (this._descripcion == value)
                {
                    return;
                }
                this._descripcion = value;
                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Descripcion"));
            }
        }


        private int _codigo_alicuota;
        public int Codigo_Alicuota
        {
            get
            {
                return _codigo_alicuota;
            }
            set
            {
                _codigo_alicuota = value;
                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Codigo_Alicuota"));
            }
        }

        private decimal tasa;
        public decimal Tasa
        {
            get
            {
                return tasa;
            }
            set
            {
                tasa = value;
                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Tasa"));
            }
        }

        private decimal _precioNeto;
        public decimal PrecioNeto
        {
            get
            {
                return _precioNeto;
            }
            set
            {
                if (_precioNeto == value)
                {
                    return;
                }
                _precioNeto = value;
                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("PrecioNeto"));
            }
        }


    }
}
